find_package(OpenCV 4 REQUIRED)

# 深度相机驱动库
aux_source_directory(src RSVIDEOCAPTURE_DIRS)
add_library(RSVideoCapture STATIC ${RSVIDEOCAPTURE_DIRS})
target_include_directories(RSVideoCapture PUBLIC ${OpenCV_INCLUDE_DIRS})
target_include_directories(RSVideoCapture PUBLIC include)
target_link_libraries(RSVideoCapture ${OpenCV_LIBS})
target_link_libraries(RSVideoCapture realsense2)